package lab02.test06;

public class Circle {
    double radius;
    double perimier;
    double area;

    public void setValue(double radius) {
        this.radius = radius;
    }

    public void perimier() {
        perimier = radius * 2 * 3.14;
        System.out.println("圆的周长是：" + perimier);
    }

    public void area() {
        area = radius * radius * 3.14;
        System.out.println("圆的面积是：" + area);
    }
}
